package dbs

type DbCfg struct {
	DBKind       string   `yaml:"dbKind"`
	Debug        bool     `yaml:"debug"`
	MultiDB      bool     `yaml:"multiDB"`
	DBs          []DbInfo `yaml:"dbs"`
	MaxIdleConns int      `yaml:"maxIdleConns"`
	MaxOpenConns int      `yaml:"maxOpenConns"`
}

type DbInfo struct {
	Addr     string `yaml:"addr"`
	Port     int    `yaml:"port"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	DbName   string `yaml:"dbName"`
	CharSet  string `yaml:"charSet"`
	DBType   string `yaml:"dbType"`
}

var conf *DbCfg
